class User < ActiveRecord::Base
	has_attached_file :avatar, :styles => {:thumb => "100x100>"},
	:storage => :dropbox,:dropbox_credentials => Rails.root.join("config/dropbox.yml"),
	:dropbox_options => {
      :path => proc { |style| "images/#{style}/#{id}_#{avatar.original_filename}" },
      :unique_filename => true
    }
	has_attached_file :resum, :styles => {:thumb => "100x100>"}, 
	:storage => :dropbox,:dropbox_credentials => Rails.root.join("config/dropbox.yml"),
	:dropbox_options => {
      :path => proc { |style| "images/#{style}/#{id}_#{avatar.original_filename}" },
      :unique_filename => true
    }
	validates_attachment_content_type :avatar, :content_type => /\Aimage\/.*\Z/
	validates_attachment_content_type :resum, :content_type => /\Aimage\/.*\Z/
	
end
